package com.itheima_02;

public class AnimalTest {
    public static void main(String[] args) {
        Animal a=new Cat();
        a.setName("哈士奇");
        a.setAge(2);
        System.out.println(a.getName()+","+a.getAge());
        a.eat();
        System.out.println("-------");


    }
}
